package edu.lnu.ums.dal;

import java.util.List;

import edu.lnu.ums.entities.security.User;
import javax.ejb.Local;

@Local
public interface IUserDAO {
	User getByName(String login);

	List<User> getAllUsers();

	UserValidationResult validateUser(User user, String oldUserName);

	void addUser(User user);
	
	void editUser(User user);
	
	void removeUser(User user);

	public enum UserValidationResult {
		OK, EXISTING_LOGIN, BAD_LOGIN, BAD_PASSWORD, EXISTING_EDIT_LOGIN;
	}
}
